<?php

require_once('inc.config.php');

if(!isset($_GET["sid"])){
	header("Location:error.php");
	exit;
}

if(!isLogin()){
	header("Location:register.php?msg=error3");
	exit;
}


$useTemplate   = 'sellhouse_detail.html';

$page = new QuickSkin ($useTemplate);

template_ini($page);


$sinfo = $myHouse->getShouseInfo($_GET["sid"]);
$goldlist = $myAgent->getGoldenList();
$clist = $myHouse->getCollection();

$page->assign($sinfo);
$page->assign("goldlist" , $goldlist);
$page->assign("clist" , $clist);

$page->assign("indexcls" , "nv_current");


$myHouse->setCollection("s_".$sinfo["id"] , $sinfo["plaza"] , $sinfo["style_detail"]);

$page->output();


ob_end_flush();

?>
